<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>7-3</title>
</head>

<body>
    <script>
        var div = document.createElement('div');
        var text = document.createTextNode('hello world');
        div.appendChild(text);
        document.body.appendChild(div);
    </script>
</body>